﻿define(function (require, exports, module) {
    "require:nomunge,exports:nomunge,module:nomunge";
    var $ = require("jquery"),
        forimg = require("forimg")
    ;

    require("http://static.nygxw.cn/ssxt/model/seajs_jqueryui/development-bundle/themes/base/jquery.ui.core.css#");
    require("http://static.nygxw.cn/ssxt/model/seajs_jqueryui/development-bundle/themes/base/jquery.ui.theme.css#");
    require("http://static.nygxw.cn/ssxt/model/seajs_jqueryui/development-bundle/themes/base/jquery.ui.datepicker.css#");
    require("http://static.nygxw.cn/ssxt/model/seajs_jqueryui/development-bundle/ui/jquery.ui.core.js")($);
    require("http://static.nygxw.cn/ssxt/model/seajs_jqueryui/development-bundle/ui/jquery.ui.widget.js")($);
    require("http://static.nygxw.cn/ssxt/model/seajs_jqueryui/development-bundle/ui/jquery.ui.datepicker.js")($);
    require("http://static.nygxw.cn/ssxt/model/seajs_jqueryui/development-bundle/ui/i18n/jquery.ui.datepicker-zh-CN.js")($);
    
    var init = function () {
        var $page = $("#page");
        
        bind();
    };

    var bind = function () {
        var $page = $("#page");

        $page.on("click", ".jcr_classify_item", function () {
            var $this = $(this),
                $con = $this.closest(".join_con_right").find(".jcr_list_con")
                _index = $page.find(".jcr_classify_item").index($this)
            ;
            $this.addClass("jcr_classify_item_cur").siblings().removeClass("jcr_classify_item_cur");
            $con.addClass("jcr_dis").eq(_index).removeClass("jcr_dis");
            return false;
        });

        /* 日历插件  */
        $page.find(".time_txt").datepicker();

    };

    init();


   
});
